/*本例主要考察了:成员变量默认初始化和赋值初始化以及构造函数调用的顺序问题 */
class Base{
	private int i = 2;
	public Base(){
        System.out.println("const base: " + i);
	    disPlay();
	}
	public void disPlay(){
		System.out.println("Base: " + i);
	}
}
class Dervied extends Base{
	private int i = 22;
	public Dervied(){
	    super.disPlay();
	    System.out.println("const derived: " + i);
	    i = 222;
	}
	
	public void disPlay(){
		System.out.println("derived: " + i);
	}
}
public class P3_Main{
	public static void main(String[] args){
		new Dervied();
	}
}
